<?php
class admin_model_log extends admin_model_base {
	public function __construct(){
		parent::__construct();
		$this->table = "_logs";
	}
	
	public function log($operation, $description, $params, $uid){
		return $this->admin_db->insert($this->table, array(
			'operation'=>$operation,
			'description'=>$description,
			'params'=>$params,
			'uid'=>$uid,
			'create_time'=>$_SERVER['REQUEST_TIME']
		));
	}
}